// Problem: P1010 [NOIP1998 普及组] 幂次方
// Contest: Luogu
// URL: https://www.luogu.com.cn/problem/P1010
// Memory Limit: 125 MB
// Time Limit: 1000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include<iostream>
#include<math.h>
using namespace std;

int n;

void dfs(int x)
{
	for(int i=14;i>=0;--i)
	{
		if(pow(2,i)<=x)
		{
			if(i==0) cout<<"2(0)";
			else if(i==1) cout<<"2";
			else
			{
				cout<<"2(";
				dfs(i);
				cout<<")";
			}
			x-=pow(2,i);
			if(x!=0) cout<<"+";
		}
	}
}

int main()
{
	cin>>n;
	dfs(n);
	return 0;
}